﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Lib_Automation
{
   public class BitMapCheck
    {
       public static bool Check(Bitmap b1,Bitmap b2)
       {
           if (b1.Width != b2.Width|| b1.Height != b2.Height)
           {
               return false;
           }
           for (int i = 0; i < b1.Width; i++)
           {
               for (int j = 0; j < b2.Height; j++)
               {
                   if (b1.GetPixel(i, j) != b2.GetPixel(i, j))
                   {
                       return false;
                   }
               }
           }


           return true;
       }


    }
}
